Game.init = function()
{
//    Event.observe(window, 'load', initDoc);
    xAddEventListener(window, 'load', initDoc);
}

Game.init();

function initDoc()
{
//    Event.observe($("login"), "click", onLogin);
//    Event.observe(xGetElementById("logout"), "click", onLogout);
/*
    xAddEventListener(xGetElementById("logout"), "click", onLogout);
    xGetElementById("login").hide();
    xGetElementById("logout").show();
*/
    console.log("Main: Start");
}
 
function doLogout()
{
    //TODO:logout
}

function onLogout()
{
    doLogout();
}
